const state = {
    treeData: {},   //左侧部门树
    videoSelectedIndex: 0,  //点击video的下标
    videoArrData: {},  //点击video的下标
    flag: true,
    // recordSearchUrl: "",
    record_li_index:0,
    files: [],
    autoPlayIndex:null
}

const getters = {

}

const mutations = {
    setTree: (state, treeData) => {
        state.treeData = treeData
    },
    setVideoSelIndex: (state, [index,videoArrData]) => {
        state.videoSelectedIndex = index
        state.videoArrData = videoArrData
    },
    setFlag: (state, flag) => {
        state.flag = flag
    },
    setRecordSearchUrl: (state, [index,files]) => {
        state.files = files;
        state.record_li_index = index;
    },
    setAutoPlayIndex: (state, index) => {
        state.treeData = index
    },
}

const actions = {
}

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}
